import Vue from 'vue'
import Router from 'vue-router'
// import App from './App'
import Home from '@/components/Home'
import User from '@/components/User'
import News from '@/components/News'
import Mine from '@/components/mine'
import Concern from '@/components/Concern'
import Country from '@/components/Country'
import slideShow from '@/components/slideShow'

Vue.use(Router)

export default new Router({
  mode:'history',
  routes: [
    {
      path: '/home',
      component: Home
    },
    {
      path:'/user',
      component:User
    },
    {
      path:'/news',
      component:News,
      children:[
        {
          path:'concern',
          component:Concern
        },
        {
          path:'Country',
          component:Country
        }
      ]
    },
    {
      path:'/mine/:name/:age/:sex',
      component:Mine
    },
    {
      path:'/slideShow',
      component:slideShow
    },
    {
      path:'*',
      redirect:'home'
    }
  ]
})
